<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/5 0005
 * Time: 下午 3:08
 */

namespace App\Http\Classes;
use Illuminate\Support\Facades\DB;

class Exception
{
    public $tableName = 'exceptions';
    public $tableDB = null;

    public function __construct()
    {
        $this->tableDB = DB::table($this->tableName);
    }

    public function logException(array $data = null)
    {
        $this->tableDB->insert($data);
    }
}